<%@ page import="vo.Books"%>
<%@ page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看所有人信息</title>
<style type="text/css">
body {
	background: url("../img/004.jpg") no-repeat;
	background-size: cover;
}
#BBB {
	width: 400px;
	height: 240px;
	margin: 10% auto;
	padding: 30px 0;
}
td {
	text-align: center;
}
</style>
</head>
<body>
	<a href="function.jsp">返回</a>
	<div>
	<%
		List<Books> list = (List<Books>) session.getAttribute("list");
	%>
	<table border="1" width="500" cellspacing="0" align="center">
		<caption>查看所有借书名单</caption>
		<tr>
			<th>姓名</th>
			<th>已借图书</th>
			<th>借书时间</th>
		</tr>
		<%
			//List<Books> list = (List<Books>) request.getAttribute("list");
			for (Books b : list) {
		%>
		<tr>
			<td><%=b.getName()%></td>
			<td><%=b.getTitle()%></td>
			<td><%=b.getDate()%></td>
		</tr>
		<%
			}
		%>
	</table>
	</div>
</body>
</html>